package com.cby.project.mvi.model

import androidx.lifecycle.LiveData
import com.cby.project.mvi.intent.IIntent
import com.cby.project.mvi.state.IState
import kotlinx.coroutines.channels.Channel

/**
 * @description: IModel
 *
 * @author ChenBaoyang
 * @date 2021/11/29 17:07
 */
interface IModel<S: IState, I: IIntent> {
    val intents: Channel<I>
    val state: LiveData<S>
}